package com.jungle.bfi.metadata.swagger.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.StringJoiner;

@Data
public class SchemaInfo {
    private String[] paths;
    private String name;
    private String title;
    private String originType;
    private String type;
    private String format;
    private String description;
    private BigDecimal maximum;
    private BigDecimal minimum;
    private String ref;

    @Override
    public String toString() {
        StringJoiner joiner = new StringJoiner(", ", SchemaInfo.class.getSimpleName() + "[", "]");
        joiner.add("name='" + name + "'")
                .add("title='" + title + "'")
                .add("type='" + type + "'")
                .add("format='" + format + "'")
                .add("description='" + description + "'")
                .add("maximum=" + maximum)
                .add("minimum=" + minimum);
        return joiner.toString();
    }
}
